package com.dgshanger.sanhxiaofeisc.mvp.contract;

import com.dgshanger.sanhxiaofeisc.entity.GoodsDetailsEntity;
import com.xx.baseuilibrary.mvp.BaseMvpView;
import com.xx.baseutilslibrary.network.rx.XxBaseHttpObserver;

/**
 * Created by JacobHHH on 2018/4/20.
 */

public interface GoodsDetailsContract {

    interface View extends BaseMvpView{

        void setData(GoodsDetailsEntity data);

        void onDataFailure(String err);
    }

    interface Presenter{

        void loadData(String good_id);
    }

    interface Model{

        void loadData(String good_id, XxBaseHttpObserver<GoodsDetailsEntity> httpObserver);
    }
}
